import request from '@/plugins/request.js'
/*                使用说明
表单格式提交 post请求 .post()  get请求 .get()
对象格式提交 post请求 .customPost()
delete 删除
export function delFourPlusOne(param = {}) { // 删除(主键)
  return request.delete('/investment/four-plus-one/delete/'+ param)
}
导出 .downLoadGet()

添加接口加载动画 {loading:true}
案例 export function api(param = {}, resParams) { //api
  return request.post(url, param, resParams,{loading:true})
} */
var commonUrl = ''

//巡检端
//APP01、基础公共接口
export function upload(param = {}, resParams) { //上传
  return request.customPost(`${commonUrl}/api/common/common/upload`, param, resParams,)
}
export function login_index(param = {}, resParams) { //1.2、手机号登录
  return request.customPost(`${commonUrl}/api/ykz/login`, param, resParams,)
}
export function getInfo_index(param = {}, resParams) { //获取用户信息
  return request.get(`${commonUrl}/api/ykz/getInfo`, param, resParams,)
}
export function list_dict(param = {}, resParams) { //字典
  return request.get(`${commonUrl}/api/ykz/dict/data/type/` + param, resParams,)
}


// 首页
export function map_home(param = {}, resParams) { //设施地图
  return request.get(`${commonUrl}/api/ykz/sewageFacility/list`, param, resParams,)
}


//任务
export function submit_taskRecordAssignment(param = {}, resParams) { // 提交任务
  return request.customPost(`${commonUrl}/api/ykz/taskRecordAssignment/submit`, param, resParams,)
}
export function aiMatchSolution_taskRecordAssignment(param = {}, resParams) { // 人工智能解决方案
  return request.get(`${commonUrl}/api/ykz/taskRecordAssignment/aiMatchSolution`, param, resParams,)
}
export function detail_taskRecordAssignment(param = {}, resParams) { //获取任务详细信息
  return request.get(`${commonUrl}/api/ykz/taskRecordAssignment/` + param, resParams,)
}

export function list_taskRecordAssignment(param = {}, resParams) { //查询任务列表
  return request.get(`${commonUrl}/api/ykz/taskRecordAssignment/list`, param, resParams,)
}
export function count_taskRecordAssignment(param = {}, resParams) { //数量统计
  return request.get(`${commonUrl}/api/ykz/taskRecordAssignment/count`, param, resParams,)
}

//责任单位

export function list_dept(param = {}, resParams) { //查询列表
  return request.get(`${commonUrl}/api/ykz/dept/list`, param, resParams,)
}
//施工单位

export function list_constructionUnit(param = {}, resParams) { //施工单位
  return request.get(`${commonUrl}/api/ykz/constructionUnit/list`, param, resParams,)
}

//舆情管控
export function list_publicSentimentControl(param = {}, resParams) { //列表
  return request.get(`${commonUrl}/api/ykz/publicSentimentControl/issue/list`, param, resParams,)
}
export function detail_publicSentimentControl(param = {}, resParams) { //获取详细
  return request.get(`${commonUrl}/api/ykz/publicSentimentControl/issue/` + param, resParams,)
}
//问题管理
export function list_issue(param = {}, resParams) { //列表
  return request.get(`${commonUrl}/api/ykz/issue/list`, param, resParams,)
}
export function detail_issue(param = {}, resParams) { //获取详细
  return request.get(`${commonUrl}/api/ykz/issue/` + param, resParams,)
}
export function assignConstructionUnit_issue(param = {}, resParams) { //指定施工单位
  return request.post(`${commonUrl}/api/ykz/issue/assignConstructionUnit` , param, resParams,)
}
export function assignResponsibleDept_issue(param = {}, resParams) { //分配责任单位
  return request.post(`${commonUrl}/api/ykz/issue/assignResponsibleDept`, param, resParams,)
}
export function remindConstructionUnit_issue(param = {}, resParams) { //提醒施工入场
  return request.post(`${commonUrl}/api/ykz/issue/remindConstructionUnit`, param, resParams,)
}
export function uploadApprovedFile_issue(param = {}, resParams) { //上传批复材料
  return request.post(`${commonUrl}/api/ykz/issue/uploadApprovedFile`, param, resParams,)
}
export function downloadApprovalFile_issue(param = {}, resParams) { //审批材料下载
  return request.post(`${commonUrl}/api/ykz/issue/downloadApprovalFile`, param, resParams,)
}

//处置端
//APP01、基础公共接口
export function login_index_wxh5(param = {}, resParams) { //1.2、手机号登录
  return request.customPost(`${commonUrl}/api/wxh5/login`, param, resParams,)
}
export function getInfo_index_wxh5(param = {}, resParams) { //获取用户信息
  return request.get(`${commonUrl}/api/wxh5/getInfo`, param, resParams,)
}


// 首页
export function map_home_wxh5(param = {}, resParams) { //设施地图
  return request.get(`${commonUrl}/api/wxh5/sewageFacility/list`, param, resParams,)
}


//问题管理
export function list_issue_wxh5(param = {}, resParams) { //列表
  return request.get(`${commonUrl}/api/wxh5/issue/list`, param, resParams,)
}
export function detail_issue_wxh5(param = {}, resParams) { //获取详细
  return request.get(`${commonUrl}/api/wxh5/issue/` + param, resParams,)
}
export function uploadApprovedFile_issue_wxh5(param = {}, resParams) { //上传审批材料
  return request.post(`${commonUrl}/api/wxh5/issue/uploadApprovalFile`, param, resParams,)
}
export function downloadApprovedFile_issue_wxh5(param = {}, resParams) { //批复材料下载
  return request.post(`${commonUrl}/api/wxh5/issue/downloadApprovedFile`, param, resParams,)
}
export function uploadFinishFile_issue_wxh5(param = {}, resParams) { //竣工材料上传
  return request.post(`${commonUrl}/api/wxh5/issue/uploadFinishFile`, param, resParams,)
}
export function uploadStartFile_issue_wxh5(param = {}, resParams) { //开工证明上传
  return request.post(`${commonUrl}/api/wxh5/issue/uploadStartFile`, param, resParams,)
}
export function uploadDesignPlanFile_issue_wxh5(param = {}, resParams) { //设计方案上传
  return request.post(`${commonUrl}/api/wxh5/issue/uploadDesignPlanFile`, param, resParams,)
}

